//
//  GQHSuppliesView.h
//  Xanthium
//
//  Created by GuanQinghao on 17/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GQHFreightModel.h"


@protocol GQHSuppliesViewDelegate <NSObject>

@required
/// 默认必须实现

@optional
/// 可选实现
/// 点击列表项
- (void)qh_selectedRowWithTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath;

/// 查看报价
- (void)qh_checkQutation:(UIButton *)sender;

/// 上架或下架货源
- (void)qh_onSaleOrNot:(UIButton *)sender;

@end


@interface GQHSuppliesView : UIView

/// 代理
@property (nonatomic, weak) id<GQHSuppliesViewDelegate> qh_delegate;

/// 货源列表cell样式
@property (nonatomic, copy) NSString *qh_cellType;

/// 货源列表
@property (nonatomic, strong) UITableView *qh_tableView;

/// 货源模型数组
@property (nonatomic, strong) NSMutableArray<GQHFreightModel *> *qh_freightModelArray;

@end
